package com.xrs.xrseducation.school.controller;

import com.xrs.xrseducation.school.service.impl.SchoolServiceImpl;
import com.xrs.xrseducation.util.LayuiUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 学科学期班次表 前端控制器
 * </p>
 *
 * @author jobob
 * @since 2020-09-18
 */
@RestController
@RequestMapping("/school/school")
public class SchoolController {
    @Autowired
    private SchoolServiceImpl schoolService;

    /**
     * 按条件分页查询所有数据
     * @param page 当前页
     * @param limit 每页显示条数
     * @param schooltype 查询条件一
     * @param schoolname 查询条件二
     * @return
     */
    @RequestMapping("querySchool.do")
    public LayuiUtils querySchool(Integer page, Integer limit, Integer schooltype, String schoolname){
        return schoolService.querySchool(page,limit,schooltype,schoolname);
    }

}
